#!/home/virus/miniconda3/bin/python
t=input('Enter a temperature value with sign: ')
if t[-1] in ('F','f'):
    out=(eval(t[0:-1])-32)/1.8
    print('Converted value is: %.2fC'%out)
elif t[-1] in ('C','c'):
    out=1.8*eval(t[0:-1])+32
    print('Converted value is: %.2fC'%out)
else:
    print('Entry error!')
